<?php
echo $this->Html->script(array('application.min'),array('inline'=>false));
?>
<?php foreach($seasons as $season):?>
    <li class="<?php echo $this->Function->Situacao($season['Situation']['id'])?> span3" id='season_<?php echo $season['Season']['id']; ?>'>
        <?php echo $this->Html->image('anime/photo/'.$season['Anime']['id'].'/xvga_'.h($season['Anime']['photo']),array('style'=>'height:auto !important;'))?>
        <section class="legend-anime info">
        <h5>
            <?php
            $titulo = $season['Anime']['name']." - ".$season['Season']['name'];
            echo $this->Function->limiteString($titulo,32);
            ?>
        </h5>
        <small class="text-legend">
            <?php
            echo  $this->Html->link(__('Assistidos:&nbsp;'.$season['Season']['dow_episodes'].' | Total:&nbsp;'.$season['Season']['full_episodes']),array('controller'=>'Indexs','action'=>'updateEpisodes',$season['Season']['id']),array('data-toggle'=>'modal','escape'=>false));
            echo "&nbsp;-&nbsp;Inicio:&nbsp;".$season['Season']['start_season']." Fim:&nbsp;".$season['Season']['end_season']
            ?>
        </small>
        <small>
            <?php echo __('Atualizado em:&nbsp;'.$this->Time->format('d/m/Y - H:i',$season['Season']['modified'])); ?>
        </small>
        </section>
        <div class="extras">
            <div class="extras-inner">
                <?php //echo $this->Html->link('<i class="icon-refresh"></i>',array('controller'=>'indexs','action'=>'updateEpisodes',$season['Season']['id']),array('class'=>'updateAnime','escape'=>false)); ?>
                <?php echo $this->Html->link('<i class="icon-refresh"></i>','javascript:void(0);',array('class'=>'','onclick'=>'updateAnime('.$season['Season']['id'].')','escape'=>false)); ?>
            </div>
        </div>
    </li>
<?php endforeach; ?>